package com.td.module.farmer.convert.employ;

import com.td.framework.common.pojo.PageResult;
import com.td.module.farmer.controller.admin.employ.vo.EmployCreateReqVO;
import com.td.module.farmer.controller.admin.employ.vo.EmployExcelVO;
import com.td.module.farmer.controller.admin.employ.vo.EmployRespVO;
import com.td.module.farmer.controller.admin.employ.vo.EmployUpdateReqVO;
import com.td.module.farmer.dal.dataobject.employ.EmployDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 农业社会化服务 Convert
 *
 * @author 王翔翔
 */
@Mapper
public interface EmployConvert {

    EmployConvert INSTANCE = Mappers.getMapper(EmployConvert.class);

    EmployDO convert(EmployCreateReqVO bean);

    EmployDO convert(EmployUpdateReqVO bean);

    EmployRespVO convert(EmployDO bean);

    List<EmployRespVO> convertList(List<EmployDO> list);

    PageResult<EmployRespVO> convertPage(PageResult<EmployDO> page);

    List<EmployExcelVO> convertList02(List<EmployDO> list);

}
